package com.lujieni.springbootmapconstructor.mapper;

import com.lujieni.springbootmapconstructor.dto.HobbyDO;
import com.lujieni.springbootmapconstructor.dto.HobbyDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

/**
 * @Author：Jie Ni
 * @Date: 2025/7/9 11:26
 * @Description:
 */
@Mapper
public interface HobbyConvert {


    HobbyConvert INSTANCE = Mappers.getMapper(HobbyConvert.class);

    // 字段类型一致,名字不同的处理
    @Mapping(source = "remark", target = "remark666")
    HobbyDTO toDto(HobbyDO hobbyDO);

}
